
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>霁圣论坛</title>
  <link rel="shortcut icon" type="image/x-icon" href="/jsluntan/images/favicon.ico?t=${.now?long}"/>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="jisheng,danyan,霁圣,上海霁圣,霁圣论坛,上海霁圣论坛">
  <meta name="description" content="霁圣论坛是一个轻量级的论坛系统">
  <link rel="stylesheet" href="/jsluntan/css/layui.css">
  <link rel="stylesheet" href="/jsluntan/css/global.css">
  <script src="/jsluntan/layui.js"></script>
  <script src="/jsluntan/js/jquery-1.10.2.min.js"></script>
  <script src="/jsluntan/js/ukefu.js"></script>
  <script src="/jsluntan/js/common.js"></script>
</head>
<body>

<div class="header" id="header">
  <div class="main">
    <a class="logo" href="/jsluntan/" title="霁圣论坛">霁圣论坛</a>
    <!-- <div class="nav">
      <a class="nav-this" href="/jsluntan/">
        <i class="iconfont icon-wenda"></i>问答
      </a>
       <#if user??><a href="https://www.gainseng.com/f/front/index">商城首页</a></#if>
    </div> -->
    <#if user??>
	    <div class="nav-user">      
	      <!-- 登入后的状态 -->
	      
	      <a class="avatar" href="/jsluntan/user/index.html">
	        <img src="/jsluntan/res/image/${user.id!''}.html" onerror="this.src='/jsluntan/images/user/default.png'">
	        <cite>${user.username!''}</cite>
	        <!-- （<i class="uk-user-level"><i class="kfont icon-vip"></i>VIP2</i>） -->
	      </a>
	      <div class="nav">
	        <a href="/jsluntan/user/profile.html"><i class="iconfont icon-shezhi"></i>设置</a>
	        <#if user?? && user.usertype?? && user.usertype == "0">
	        <a href="/jsluntan/admin"><i class="layui-icon">&#xe631;</i>系统管理</a>
	        </#if>
	        <#if user?? && user.usertype?? && user.usertype == "0">
	          <a href="/jsluntan/logout.html"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
	        <#else>
	          <a  id="aa" style="cursor:pointer;"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
	        </#if>
	      </div>
	      
	    </div>
    <#else>
	    <div class="nav-user">
	      <!-- 未登入状态 -->
	      <a class="unlogin" href="/jsluntan/login.html"><i class="iconfont icon-touxiang"></i></a>
	      <span>
	      	<a href="https://www.gainseng.com/f/account/login.html">登入</a>
	      	<!-- <a href="/jsluntan/login.html">登入</a>  -->
	      	<!-- <a href="/jsluntan/reg.html">注册</a> -->
	      </span>
	      <!-- <p class="out-login">
	        <a href="" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-qq" title="QQ登入"></a>
	        <a href="" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-weibo" title="微博登入"></a>
	      </p>  -->  
	    </div>
    </#if>
  </div>
</div>

<#include "${data.page}.html"/> 

<div class="footer">
  <p>&copy;2016<a href="https://gainseng.com/f" target="_blank">上海霁圣电子科技有限公司</a><a href="https://www.gainseng.com/f/front/index">沪ICP备16053480号-1</a></p>
</div>
<script language="javascript">
	layui.use('layer', function(){
	  var layer = layui.layer;
	  <#if msg?? && msg == 'sendmsg'>
		layer.alert('消息发送成功', {icon: 1});
	  </#if>
	});

	$(function() {
		$("#aa").on("click",function(){
			$.ajax({
				type: "POST",
				url: "/jsluntan/logout",
				success: function(data){
					window.close();
				}
			})
		})    
	})
</script>
</body>
</html>
